@echo off
FOR /F "tokens=*" %%G IN ('dir /b /s *.o') DO del "%%G"
@echo on